<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>

<?php
include "./config/config.inc.php";
//connect to mysql database
mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

if ($_GET[mini] or $_POST[mini]){


}
if (!$_GET[bidid]){
$query="SELECT * FROM bids WHERE BID_id='$_POST[bidid]'";
}
Else{
$query="SELECT * FROM bids WHERE BID_id='$_GET[bidid]'";
}

$result=mysql_query($query);

if ($_GET[mini] or $_POST[mini]){
echo mysql_result($result,0,"project");
echo mysql_result($result,0,"Location");
echo mysql_result($result,0,"city");
echo mysql_result($result,0,"bid_date");
echo mysql_result($result,0,"bid_amount");
echo mysql_result($result,0,"bid_alternates");
echo mysql_result($result,0,"General_con");
echo mysql_result($result,0,"comment");


}
$project=mysql_result($result,0,"project");
$location=mysql_result($result,0,"Location");
$city=mysql_result($result,0,"city");
$biddate=mysql_result($result,0,"bid_date");
$bidamount=mysql_result($result,0,"bid_amount");
$altamount=mysql_result($result,0,"bid_alternates");
$contact=mysql_result($result,0,"General_con");
$comments=mysql_result($result,0,"comment");
?>



  <title>Project Details</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/style/detail.css" >

  <!-- Hack to avoid flash of unstyled content in IE -->
  <script> </script>
</head><body id="onecolumn">
  <div id="container">
    <div class="wrapper">
      <div id="header">
        <div class="wrapper">
          <h1 id="page-title"><div id="g_title"><?php echo"$project";?></div></h1>
          <div style="clear: both;"></div>

          <p class="description"><a href="./">|Home|</a><a href="./new/">|New Job|</a><a href="./edit/Edit.php?bidid=<?php echo "$_GET[bidid]" ?>">|Edit|</a><a href="./Contacts/">|Contacts|</a></p>
		  <div id="g_description">
		  	  

		  </div>
          <div style="clear: both;"></div>
        </div>
      </div>
      <!-- /editable --><!-- /wrapper --><!-- /header -->
      <div id="main-content">
        
        <div class="wrapper">
          <div class="content-item">
			</div>
			<div id="g_body">
			<?php
			if (!$_GET[bidid]){
			echo "<p><b>Bid Number:</b> $_POST[bidid]</p>";
			}
			Else{
			echo "<p><b>Bid Number:</b> $_GET[bidid]</p>";
			}
			echo "<p><b>Bid Date:</b> $biddate</p>";
			echo "<p><b>Bid Amount:</b> $$bidamount</p>";
			echo "<p><b>Alternate Amount:</b> $$altamount</p>";
			echo "<p><b>State:</b> $location</p>";
			echo "<p><b>City:</b> $city</p>";			
			echo "<p><b>General Contractor:</b> $contact</p>";
			echo "<p><b>Comments:</b> $comments</p>";
			?>
			
			</div>
		  </div>
          <div style="clear: both;"></div>
        </div>
      </div>
      <!-- /wrapper --><!-- /main-content -->
      <div id="footer"><div class="wrapper">
        <hr>
        <p></p><div id="g_footer">&nbsp;</div>
        <div style="clear: both;"></div>
      </div></div>
      <!-- /wrapper --><!-- /footer -->
    </div>
  </div>
<!-- /wrapper --><!-- /container -->

<div id="extraDiv1"><span></span></div><div id="extraDiv2"><span></span></div>
<div id="extraDiv3"><span></span></div><div id="extraDiv4"><span></span></div>
<div id="extraDiv5"><span></span></div><div id="extraDiv6"><span></span></div>

</body></html>